home *** CD-ROM | disk | FTP | other *** search
- Path: csulb.edu!davidcho
- From: davidcho@csulb.edu (David Cho)
- Newsgroups: comp.lang.c
- Subject: Urgent: pow() in TurboC
- Date: 17 Mar 1996 11:27:01 GMT
- Organization: Cal State Long Beach
- Message-ID: <4igsu5$q1t@hatathli.csulb.edu>
- NNTP-Posting-Host: heart.engr.csulb.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- void main() {
-
- long int k;
-
- k = pow(2,23);
-
- }
-
- When I try this, k gets 0.0. Then I try smaller numbers like (2,3) and I
- still get 0.0. So I change the parameters to (2.0, 3.0) and I get
- 255.00. What is going on here?
-
- Is there a bug in the compiler? Please e-mail me.
-